package com.hongyi.system.domain.dto;

import com.hongyi.system.domain.SysNotice;
import com.hongyi.common.mybatis.domain.BaseEntity;
import com.hongyi.common.framework.validate.AddGroup;
import com.hongyi.common.framework.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 通知公告业务对象 sys_notice
 *
 * @author DingHao
 * @date 2025-01-24 10:14:00
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SysNotice.class, reverseConvertGenerate = false)
public class SysNoticeDto extends BaseEntity {

    /**
     * 公告ID
     */
    private Long noticeId;

    /**
     * 用户ID集合
     */
    private List<Long> userIds;

    /**
     * 通知用户标识
     */
    private String userIcon;

    /**
     * 标题
     */
    @NotBlank(message = "标题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String noticeTitle;

    /**
     * 类型（1通知 2公告）
     */
    @NotBlank(message = "类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String noticeType;

    /**
     * 内容
     */
    private String noticeContent;

    /**
     * 状态（0正常 1关闭）
     */
    @NotBlank(message = "状态不能为空", groups = { EditGroup.class })
    private String status;

    /**
     * 备注
     */
    private String remark;


}
